package cv.ltq.starterdemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(RegPropertis.class)
public class RagAutoConfigure {

    @Autowired
    RegPropertis regPropertis;
    @Bean
    RegService regService(){
        RegService regService=new RegService(regService().getUsername(), regService().getPass());
        return regService;
    }
}
